home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
nn.zip
/
M-XENIX3.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-07-11
|
2KB
|
77 lines
/************** Machine (and compiler) dependent definitions. **************
*
* This file is for XENIX 386.
*/
/* MACHINE TYPE DEFINED TYPE VALUE RANGE */
typedef unsigned char int8; /* 0 .. 255 */
typedef short int16; /* -10,000 .. 10,000 */
typedef long int32; /* -100,000 .. 100,000 */
typedef unsigned long uint32; /* 0 .. 2^31-1 */
/*
* Define NO_VARARGS if the varargs feature is not available
*
* Also define NO_VARARGS if the vprintf/vsprintf routines are not
* available (however, this will only by safe on some machines, like
* the VAX).
*
*/
/* #define NO_VARARGS */
/*
* Define STRCSPN if the strcspn() function is not available.
*/
/* #define STRCSPN /* */
/*
* Define NO_SIGINTERRUPT on BSD based systems which don't have
* a siginterrupt() function, but provides an SV_INTERRUPT flag
* in <signal.h>.
*/
/* #define NO_SIGINTERRUPT /* */
#ifdef NETWORK_DATABASE
/*
* Define NETWORK_BYTE_ORDER if the machine's int32's are
* already in network byte order, i.e. m68k based.
*/
#undef NETWORK_BYTE_ORDER /* */
YOU LOSE -- I DON'T KNOW HOW TO DO THIS ON XENIX 386
/*
* OTHERWISE provide the functions/macros ntohl/htonl to
* convert longs from and to network byte order
*/
/*
* Include appropriate files or define macroes or functions (include them
* in data.c) to convert longs and shorts to and from network byte order.
*/
/*
* This will work on most BSD based systems...
*/
#include <netinet/in.h>
/*
* Otherwise, define something appropriate below
*/
#define htonl(l) ... /* host long to network long */
#define ntohl(l) ... /* network long to host long */
#endif /* NETWORK DATABASE */